package com.shtel.paas.monitorcenter.config.management.collection.config.service;

import java.util.List;
import java.util.Map;

import com.shtel.paas.monitorcenter.config.management.collection.config.vo.MonitoringIndexConfigurationVO;
import com.shtel.paas.monitorcenter.config.management.collection.config.vo.MonitoringIndexVO;
import org.springframework.stereotype.Repository;

import com.shtel.paas.monitorcenter.config.management.collection.config.entity.CollectionConfigEntity;
import com.shtel.paas.monitorcenter.config.management.collection.config.entity.UpdateConfigurationCollectionEntity;
import com.shtel.paas.monitorcenter.config.management.collection.config.vo.CollectionConfigVo;
import com.shtel.paas.monitorcenter.util.Page;

/**
 * 
 * @author zhaochuan.zhong
 *
 */
@Repository
public interface CollectionConfigService {
	//获取指标配置信息。
	Page<CollectionConfigVo> selectCollectionConfigInfo(CollectionConfigEntity parameter);

	//更新指标配置信息。
	Integer updateCollectionConfigInfo(UpdateConfigurationCollectionEntity paramter);

	//获取主机刷新信息。
	Page<CollectionConfigVo> selectCollectionConfigTab2Info(CollectionConfigEntity parameter);

	//视图刷新下拉框
	Map<String, Object> selectOptionValue();

	//更新视图 刷新配置信息。
	Integer updateCollectionConfigTab2Info(UpdateConfigurationCollectionEntity paramter);

	// 查询数据采集频率
	String queryDataAcquisitionFrequency();

	// 查询监控指标ztree
	List<MonitoringIndexConfigurationVO> selectMonitoringIndex();

	// 查询监控指标ztree子节点
	List<MonitoringIndexVO> asyncGetKPITreeData(String id);

	// 修改数据采集频率
	Integer  updataDataAcquisitionFrequency(String dataAcquisitionFrequency);

	// 批量修改times AND minutes
	Integer  updataTimesANDMinutes(UpdateConfigurationCollectionEntity paramter);

}